home *** CD-ROM | disk | FTP | other *** search
- -- card: 2404 from stack: in
- -- bmap block id: 2888
- -- flags: 0000
- -- background id: 2580
- -- name: scoreCard
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=52 top=60 right=323 bottom=89
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 10
- -- style flags: 256
- -- line height: 13
- -- part name: Individual
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=192 top=128 right=148 bottom=238
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Correct
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=282 top=128 right=148 bottom=328
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Percent
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=234 top=175 right=195 bottom=280
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Grade
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=208 top=278 right=300 bottom=308
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: OK
- ----- HyperTalk script -----
- on mouseUp
- global quizTotal
- if quizTotal = 0 then
- put empty into cd fld "Individual"
- lock screen
- go card "testCard"
- show btn "Begin Quiz"
- show cd fld cover
- show cd fld fracCover
- go card "scoreCard"
- unlock screen
- end if
- visual wipe left
- go card "testCard"
- if quizTotal = 0 then showButtons
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=208 top=237 right=259 bottom=308
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Compute
- ----- HyperTalk script -----
- on mouseUp
- set numberFormat to "#.##"
- if cd fld "Individual" is empty then exit mouseUp
- put empty into totalScore
- repeat with x = 1 to 20
- add line x of cd fld "Individual" to totalScore
- end repeat
- put totalScore into cd fld "Correct"
- put cd fld "Correct"/the number of lines in cd fld "Individual"*10 & "%" into cd fld "Percent"
- put cd fld "Correct"/the number of lines in cd fld "Individual"*10 into pct
- if pct < 101 then put "A+" into cd fld "Grade"
- if pct < 98 then put "A" into cd fld "Grade"
- if pct < 93 then put "A-" into cd fld "Grade"
- if pct < 90 then put "B+" into cd fld "Grade"
- if pct < 87 then put "B" into cd fld "Grade"
- if pct < 83 then put "B-" into cd fld "Grade"
- if pct < 80 then put "C+" into cd fld "Grade"
- if pct < 77 then put "C" into cd fld "Grade"
- if pct < 73 then put "C-" into cd fld "Grade"
- if pct < 70 then put "D+" into cd fld "Grade"
- if pct < 67 then put "D" into cd fld "Grade"
- if pct < 63 then put "D-" into cd fld "Grade"
- if pct < 60 then put "F" into cd fld "Grade"
- end mouseUp
-
-
-
- -- part contents for card part 2
- ----- text -----
- 9
-
- -- part contents for card part 3
- ----- text -----
- 90%
-
- -- part contents for card part 4
- ----- text -----
- A-